<?php
function getBasePath() {
        preg_match('@(/.*?omicron8)@', $_SERVER['REQUEST_URI'], $matches);
        return $matches[1];
}

function clean($text) {
	return addslashes(htmlspecialchars($text));
}

function cleanq($text) {
	return "'".clean($text)."'";
}

function pprint_r($array) {
	echo '<pre>';
	print_r($array);
	echo '</pre>';
}
?>
